package com.lingxu.api.ztb.mapper;

import com.lingxu.api.ztb.model.ConstructionDrawingDesign;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lingxu.api.ztb.model.vo.ConstructionDrawingDesignVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;


import java.util.List;

/**
 *  施工图设计表  Mapper接口
 *
 * @author admin
 * @since 2025-08-11
 */
@Mapper
public interface ConstructionDrawingDesignMapper extends BaseMapper<ConstructionDrawingDesign> {
    /**
     * 查询 施工图设计表
     *
     * @return
     */
    List<ConstructionDrawingDesignVO> selectConstructionDrawingDesignList(@Param("query") ConstructionDrawingDesignVO vo);

    IPage<ConstructionDrawingDesignVO> pageList(@Param("page") Page<ConstructionDrawingDesignVO> page, @Param("query") ConstructionDrawingDesignVO vo);

    List<ConstructionDrawingDesignVO> getDataForExport(@Param("query") ConstructionDrawingDesignVO vo);

    void createTempTable(@Param("batchFlag")String batchFlag);
    void insertTempTable(@Param("list") List<ConstructionDrawingDesignVO> dataList, @Param("batchFlag")String batchFlag);
    void insertTable(@Param("batchFlag")String batchFlag);
    void dropTempTable(@Param("batchFlag")String batchFlag);

    List<ConstructionDrawingDesignVO> constructionDrawingDesignInfo(@Param("projectname") String projectname);
}
